using System;
using System.Collections.Generic;
using System.Text;

namespace usm.SolDev.DataBase.DataObjects
{
    public class GroupDataObject : DataObject
    {
        #region private fields
        private int id;
        private string name;
        #endregion

        #region Constructors
        /// <summary>
        ///     Default constructors
        /// </summary>
        public GroupDataObject (){}

        /// <summary>
        ///     Initialization constructor
        /// </summary>
        /// <param name="id">the group id</param>
        /// <param name="name">the group name</param>
        public GroupDataObject(int id, string name)
        {
            this.id = id;
            this.name = name;
        }

        #endregion

        #region Public properties
        /// <summary>
        ///     Id of the group
        /// </summary>
        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        /// <summary>
        ///     Name of the group
        /// </summary>
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        #endregion

        #region Override methods
        public override string ToString ()
        {
            return name;
        }
        #endregion
    }
}
